<template>
	<view>
		<web-view :src="src"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src: '',
			}
		},
		onNavigationBarButtonTap(e) {
			console.log(1111, e)
			// this.$scope.$getAppWebview().children()[0].close()
			// uni.navigateBack({
			// 	delta: 10
			// })
			// uni.navigateTo({
			// 	url:'./meituan'
			// })
			uni.redirectTo({
				url: './meituan'
			})
		},
		mounted() {
			// var a = document.getElementsByClassName('uni-page-head-btn')[0]
			// a.style.display = 'none'
		},
		onLoad(option) {
			// console.log(decodeURIComponent(option.src))
			this.src = decodeURIComponent(option.src)
		},
		methods: {
			leftClick() {
				uni.redirectTo({
					url: './meituan'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.ttp {
		padding-top: var(--status-bar-height);
	}

	web-view {
		margin-top: var(--status-bar-height);
	}
</style>
